
//----------------------------------------------------------------
// Copyright (C) 2009 上海EZCRS
// 版权所有。 
// All rights reserved.

// 文件名：MsgEventBO.cs
// 文件功能描述：消息事件
// 
// 
// 创建标识： kevin  2009-6-5 14:43:15
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess.Base.Model.PageObject;
using Strive.DataAccess.Base.BO;
using Strive.DataAccess;
using Strive.Util;
using OTA.Notification.DAO.Event;
using OTA.Notification.Entity.Event;
using OTA.Notification.Interface.IDAO.Event;
using OTA.Notification.Interface.IBO.Event;
using Strive.DataAccess.Base.Model.SearcherObject;

namespace OTA.Notification.BO.Event
{
    /// <summary>
    /// [MsgEvent]BO的业务逻辑
    /// </summary>
	/// <exception cref="BOException ">业务异常</exception>
	/// <exception cref="DAOException ">数据方法异常</exception>
	/// <exception cref="Exception ">系统异常</exception>
	/// <exception cref="StriveException ">NStirve框架异常</exception>
	/// <remarks>该BO已经生成了基本的业务操作，在自动生成的方法中已经提供了事务、缓存、安全、状态、日志等机制。</remarks>
   public abstract class MsgEventBO:BaseBOBean<int, MsgEventBean, MsgEventDao, IMsgEventDao>, IMsgEventBo
   {
        
        //#region IBaseBoBean 实现

       /// <summary>
       /// 方法名称: SaveBean
       /// 内容摘要: 增、删、改 实体MsgEventBean
       /// </summary>
       /// <exception cref="BOExption ">业务异常</exception>
       /// <returns>SaveAction状态</returns>
       //public virtual SaveAction SaveBean(MsgEventBean obj)
       //{
       //    try
       //    {
             
       //        return base.Save(obj);
       //    }
       //    catch (DAOException ex)
       //    {
       //        throw new BOExption("访问MsgEventBO时调用SaveBean方式错误", ex);
       //    }
       //}

       public int SaveList(List<MsgEventBean> lst)
       {
           return base.DomainDAO.DataInsert(lst);
       }

        //#endregion
		
        ///// <summary>
        ///// 方法名称: SelectByPK
        ///// 内容摘要: 由键值获取一个实体对象
        ///// </summary>
        ///// <exception cref="BOExption ">业务异常</exception>
        ///// <returns>MsgEvent</returns>
        //public virtual MsgEventBean SelectByPK(int pk){
        //    try
        //    {
        //        return  base.Load(pk);
        //    }
        //    catch (DAOException ex) {
        //        throw new BOExption("访问MsgEventBo时调用SelectByPK方式错误",ex);
        //    }
        //}


       public virtual PageResult<MsgEventBean> SelectPageList(BasePageSearch search)
       {

           return base.DomainDAO.SelectPageList(search);

       }
   }
	
}

	